import http from '@/http'
import { ListKhlfParam, KhlfModel } from './KhlfModel'

export const addUserApi = (param:KhlfModel) => {
    return http.post("/api/khlf",param)
}

export const getListApi = (param:ListKhlfParam) => {
    return http.get("/api/khlf/list",param)
}

export const editUserApi = (param:KhlfModel) => {
    return http.put("/api/khlf",param)
}

export const deleteUserApi = (id:string) => {
    return http.delete(`/api/khlf/${id}`)
}
